<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改POST_TMDATA_TMINTERF')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-POST_TMDATA_TMINTERF-edit" th:object="${yppRfcPostTmdataTminterf}">
            <input name="MANDT" th:field="*{MANDT}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户端：</label>
                <div class="col-sm-8">
                    <input name="MANDT" th:field="*{MANDT}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外围系统单号：</label>
                <div class="col-sm-8">
                    <input name="ZDOCNO" th:field="*{ZDOCNO}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">行项次号：</label>
                <div class="col-sm-8">
                    <input name="POSNR" th:field="*{POSNR}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">SAP单据号码：</label>
                <div class="col-sm-8">
                    <input name="ZSAPDOCNO" th:field="*{ZSAPDOCNO}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单据类型(条码系统接口)：</label>
                <div class="col-sm-8">
                    <input name="ZDOCTP" th:field="*{ZDOCTP}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">业务类型(条码系统接口)：</label>
                <div class="col-sm-8">
                    <input name="ZBUSTP" th:field="*{ZBUSTP}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">凭证中的过帐日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="BUDAT" th:value="${#dates.format(yppRfcPostTmdataTminterf.BUDAT, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物料号：</label>
                <div class="col-sm-8">
                    <input name="MATNR" th:field="*{MATNR}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">以输入单位计的数量：</label>
                <div class="col-sm-8">
                    <input name="ERFMG" th:field="*{ERFMG}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">条目单位：</label>
                <div class="col-sm-8">
                    <input name="ERFME" th:field="*{ERFME}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工厂：</label>
                <div class="col-sm-8">
                    <input name="WERKS" th:field="*{WERKS}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">接收仓：</label>
                <div class="col-sm-8">
                    <input name="zlocI" th:field="*{zlocI}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发出仓：</label>
                <div class="col-sm-8">
                    <input name="zlocO" th:field="*{zlocO}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">成本中心：</label>
                <div class="col-sm-8">
                    <input name="KOSTL" th:field="*{KOSTL}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单号-接收：</label>
                <div class="col-sm-8">
                    <input name="zvbelnI" th:field="*{zvbelnI}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单行-接收：</label>
                <div class="col-sm-8">
                    <input name="zposnrI" th:field="*{zposnrI}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单号-发货：</label>
                <div class="col-sm-8">
                    <input name="zvbelnO" th:field="*{zvbelnO}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">销售订单行-发货：</label>
                <div class="col-sm-8">
                    <input name="zposnrO" th:field="*{zposnrO}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">操作员：</label>
                <div class="col-sm-8">
                    <input name="ZOPRTER" th:field="*{ZOPRTER}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订舱号码：</label>
                <div class="col-sm-8">
                    <input name="ZSPNO1" th:field="*{ZSPNO1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">货柜号Container No.：</label>
                <div class="col-sm-8">
                    <input name="ZSHIP2" th:field="*{ZSHIP2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">封条号Seal No.：</label>
                <div class="col-sm-8">
                    <input name="ZSHIP3" th:field="*{ZSHIP3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">传入日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZIBDAT" th:value="${#dates.format(yppRfcPostTmdataTminterf.ZIBDAT, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">传入时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZIBTIM" th:value="${#dates.format(yppRfcPostTmdataTminterf.ZIBTIM, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">传入者：</label>
                <div class="col-sm-8">
                    <input name="ZIBUSR" th:field="*{ZIBUSR}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐状态：</label>
                <div class="col-sm-8">
                    <input name="ZPSTFLG" th:field="*{ZPSTFLG}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注说明：</label>
                <div class="col-sm-8">
                    <input name="MSGTX" th:field="*{MSGTX}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐者：</label>
                <div class="col-sm-8">
                    <input name="ZPSTER" th:field="*{ZPSTER}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐执行日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZPSTDT" th:value="${#dates.format(yppRfcPostTmdataTminterf.ZPSTDT, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">过帐执行时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="ZPSTTM" th:value="${#dates.format(yppRfcPostTmdataTminterf.ZPSTTM, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">批号：</label>
                <div class="col-sm-8">
                    <input name="BATCH" th:field="*{BATCH}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('POST_TMDATA_TMINTERF')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}">
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "sap/POST_TMDATA_TMINTERF";
        $("#form-POST_TMDATA_TMINTERF-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-POST_TMDATA_TMINTERF-edit').serialize());
            }
        }

        $("input[name='BUDAT']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZIBDAT']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZIBTIM']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZPSTDT']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ZPSTTM']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>